package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.Indirect;

/**
 * 间接费用Service接口
 *
 * @author ruoyi
 * @date 2024-04-04
 */
public interface IIndirectService
{
    /**
     * 查询间接费用
     *
     * @param id 间接费用主键
     * @return 间接费用
     */
    public Indirect selectIndirectById(Long id);

    /**
     * 查询间接费用列表
     *
     * @param indirect 间接费用
     * @return 间接费用集合
     */
    public List<Indirect> selectIndirectList(Indirect indirect);

    /**
     * 新增间接费用
     *
     * @param indirect 间接费用
     * @return 结果
     */
    public int insertIndirect(Indirect indirect);

    /**
     * 修改间接费用
     *
     * @param indirect 间接费用
     * @return 结果
     */
    public int updateIndirect(Indirect indirect);

    /**
     * 批量删除间接费用
     *
     * @param ids 需要删除的间接费用主键集合
     * @return 结果
     */
    public int deleteIndirectByIds(Long[] ids);

    /**
     * 删除间接费用信息
     *
     * @param id 间接费用主键
     * @return 结果
     */
    public int deleteIndirectById(Long id);

    public int checkIndirectByProjectCodeAndNameId(String projectCode, Integer nameId);

    /**
     * 根据项目编号和间接费用明细名称id以及分期查询间接费用
     * @param indirect 间接费用对象
     * @return 结果
     */
    int countIndirectByProjectCodeAndNumber(Indirect indirect);
}
